﻿using UnityEngine;
using System.Collections;
/// <summary>
/// Weapon.
/// </summary>
public class Weapon : MonoBehaviour 
{	
	void Start () 
	{
		
		
	}
	

	void Update () 
	{
		
	}
	public virtual void Attack()
	{
		Debug.Log("attack in weapon");
	}	
	
	protected virtual void OnTriggerEnter2D(Collider2D _other)
	{
		if(_other.gameObject.tag == "Enemy")
		{
			Destroy(_other.gameObject);
			Debug.Log ("hit");
		}
	}
}
